home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / ppc-amigaos / include / powerup / ppcpragmas / input_pragmas.h < prev    next >
C/C++ Source or Header  |  2000-02-28  |  1KB  |  46 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _PPCPRAGMA_INPUT_H
  4. #define _PPCPRAGMA_INPUT_H
  5. #ifdef __GNUC__
  6. #ifndef _PPCINLINE__INPUT_H
  7. #include <powerup/ppcinline/input.h>
  8. #endif
  9. #else
  10.  
  11. #ifndef POWERUP_PPCLIB_INTERFACE_H
  12. #include <powerup/ppclib/interface.h>
  13. #endif
  14.  
  15. #ifndef POWERUP_GCCLIB_PROTOS_H
  16. #include <powerup/gcclib/powerup_protos.h>
  17. #endif
  18.  
  19. #ifndef NO_PPCINLINE_STDARG
  20. #define NO_PPCINLINE_STDARG
  21. #endif/* SAS C PPC inlines */
  22.  
  23. #ifndef INPUT_BASE_NAME
  24. #define INPUT_BASE_NAME InputBase
  25. #endif /* !INPUT_BASE_NAME */
  26.  
  27. #define    PeekQualifier()    _PeekQualifier(INPUT_BASE_NAME)
  28.  
  29. static __inline UWORD
  30. _PeekQualifier(void *InputBase)
  31. {
  32. struct Caos    MyCaos;
  33.     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  34. //    MyCaos.M68kStart    =    NULL;
  35. //    MyCaos.M68kSize        =    0;
  36.     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  37. //    MyCaos.PPCStart        =    NULL;
  38. //    MyCaos.PPCSize        =    0;
  39.     MyCaos.caos_Un.Offset    =    (-42);
  40.     MyCaos.a6        =(ULONG) InputBase;    
  41.     return((UWORD)PPCCallOS(&MyCaos));
  42. }
  43.  
  44. #endif /* SASC Pragmas */
  45. #endif /* !_PPCPRAGMA_INPUT_H */
  46.